package com.tedu.controller;
//测试SpringMVC自动解析参数
public class CarController2 {
    public static void main(String[] args) {
        new CarController2().jiexi();
    }
    public  void jiexi(){
        String url = "http://localhost:8080/car/insert?id=1&name=张三&age=18";
      String [] s = url.split("\\?")[1].split("&");
        for(String ss : s){
            System.out.println(ss.split("=")[1]);
        }

    }
}
